<?php

namespace common\entities\myhtsq;

use common\entities\ContractEntity;
use Yii;

/**
 * This is the model class for table "myscrm_sign_dely".
 *
 * @property string $dely_id
 * @property string $contract_id
 * @property string $dely_amount
 * @property string $belong_by
 * @property string $department_by
 * @property string $area_by
 * @property string $dely_on
 * @property string $dely_mark
 * @property string $dely_belong_on
 * @property string $attribute_name
 * @property string $created_on
 * @property string $created_by
 * @property string $modified_on
 * @property string $modified_by
 */
class SignDelyEntity extends ContractEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_sign_dely';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['dely_id'], 'required'],
            [['dely_amount'], 'number'],
            [['dely_on', 'created_on', 'modified_on','dely_belong_on'], 'safe'],
            [['dely_id', 'contract_id', 'payment_id', 'belong_by', 'department_by', 'area_by', 'created_by', 'modified_by'], 'string', 'max' => 36],
            [['attribute_name'], 'string', 'max' => 50],
            [['dely_mark'], 'string', 'max' => 500]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'dely_id' => 'Dely ID',
            'payment_id' => 'Payment ID',
            'contract_id' => 'Contract ID',
            'dely_amount' => 'Dely Amount',
            'belong_by' => 'Belong By',
            'department_by' => 'Department By',
            'area_by' => 'Area By',
            'dely_on' => 'Dely On',
            'dely_mark' => 'Dely Mark',
            'dely_belong_on' => 'Dely Belong On',
            'attribute_name' => 'Attribute Name',
            'created_on' => 'Created On',
            'created_by' => 'Created By',
            'modified_on' => 'Modified On',
            'modified_by' => 'Modified By',
        ];
    }
}
